Skip to content

[accounting] move dbcontext to local scope - fix memory leak#2876

Merged
julianocosta89 merged 2 commits intoopen-telemetry:mainfrom
puckpuck:accounting.fix-memory-leak
Jan 12, 2026
Merged

[accounting] move dbcontext to local scope - fix memory leak#2876
julianocosta89 merged 2 commits intoopen-telemetry:mainfrom
puckpuck:accounting.fix-memory-leak

Conversation

@puckpuck
Copy link
Copy Markdown
Contributor

@puckpuck puckpuck commented Jan 9, 2026

Changes

This fixes the memory leak in the accounting service by moving the dbcontext to local scope. This is the recommended approach to create and dispose of DBContext instance per Entity Framework best practices.

Merge Requirements

For new features contributions, please make sure you have completed the following
essential items:

  • CHANGELOG.md updated to document new feature additions

@puckpuck puckpuck requested a review from a team as a code owner January 9, 2026 21:10
@julianocosta89 julianocosta89 merged commit cc29e06 into open-telemetry:main Jan 12, 2026
34 checks passed
andrew-lozoya pushed a commit to newrelic/opentelemetry-demo that referenced this pull request Jan 30, 2026
…lemetry#2876)

* move dbcontext to local scope

* accounting - fix memory leak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants